//
//  RXXKVideoControlView.h
//  RXXKVideo
//
//  Created by 星仔 on 2019/3/17.
//  Copyright © 2019年 rxx. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class RXXKVideoModel;
@protocol RXXKVideoControlViewDelegate;

@interface RXXKVideoControlView : UIView

@property (nonatomic, strong) RXXKVideoModel      *videoModel;
/**
 封面,显示视频封面
 */
@property (nonatomic, strong) UIImageView         *coverImageView;
@property (nonatomic, weak) id<RXXKVideoControlViewDelegate>delegate;

- (void)setProgress:(CGFloat)progress;

- (void)startLoading;
- (void)stopLoading;
- (void)showPlayBtn;
- (void)hidePlayBtn;

@end

@protocol RXXKVideoControlViewDelegate <NSObject>

- (void)contentViewDidClickSelf:(RXXKVideoControlView *)contentView;
- (void)contentViewDidClickIcon:(RXXKVideoControlView *)contentView;
- (void)contentViewDidClickPraise:(RXXKVideoControlView *)contentView;
- (void)contentViewDidClickCommit:(RXXKVideoControlView *)contentView;
- (void)contentViewDidClickShare:(RXXKVideoControlView *)contentVIew;

@end
NS_ASSUME_NONNULL_END
